xen/arm: fix GIC_INVALID_LR
authorStefano Stabellini <sstabellini@kernel.org>
Thu, 22 Dec 2016 02:15:10 +0000 (18:15 -0800)
committerStefano Stabellini <sstabellini@kernel.org>
Thu, 16 Mar 2017 20:53:33 +0000 (13:53 -0700)
GIC_INVALID_LR should be 0xff, but actually, defined as ~(uint8_t)0, is
0xffffffff. Fix the problem by placing the ~ operator before the cast.

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Julien Grall <julien.grall@arm.com>
xen/include/asm-arm/vgic.h

index 300f4616f52e5a99d97ee78e3c594d608aba1e0d..eb060646bddb2ecf39a85c19f5d030832798d76c 100644 (file)
@@ -69,7 +69,7 @@ struct pending_irq
     unsigned long status;
     struct irq_desc *desc; /* only set it the irq corresponds to a physical irq */
     unsigned int irq;
-#define GIC_INVALID_LR         ~(uint8_t)0
+#define GIC_INVALID_LR         (uint8_t)~0
     uint8_t lr;
     uint8_t priority;
     /* inflight is used to append instances of pending_irq to